package com.itboye.system.bean;

/**
 * ByResultBean.java
 * Created on  2016/7/29 11:54
 * 版本       修改时间          作者      修改内容
 * V1.0.1    2016/7/29      hebidu    初始版本
 * <p>
 * Copyright (c) 2013 杭州博也网络科技有限公司 版权所有
 * HANGZHOU BOYE TECHNOLOGY CO.,LTD. All Rights Reserved.
 */
public class ByResultBean {

    public static ByResultBean success(String msg){
        return new ByResultBean(true,msg);
    }
    public static ByResultBean fail(String msg){
        return  new ByResultBean(false,msg);
    }

    @Override
    public String toString() {
        return "ByResultBean{" +
                "isSuccess=" + isSuccess +
                ", msg='" + msg + '\'' +
                '}';
    }

    public ByResultBean() {
    }

    public ByResultBean(boolean isSuccess, String msg) {
        this.isSuccess = isSuccess;
        this.msg = msg;
    }


    private boolean isSuccess;
    private String msg;

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
